Skip to content

feat(workbench): add system permission settings for desktop and Host - #7392

Open
ARE404 wants to merge 1 commit into
apache:mainfrom
ARE404:feat/system-permissions-settings
Open

ARE404 wants to merge 1 commit into
apache:mainfrom
ARE404:feat/system-permissions-settings

Conversation

@ARE404

@ARE404 ARE404 commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Add a top-level System permissions page to Settings so people can check which permissions belong to the desktop and which belong to the connected Host, even before opening a conversation.

Key Changes

  • Read microphone, Accessibility and Screen Recording status for the desktop. Read the serving Host’s computer-control grants independently and distinguish grants that have yet to take effect in its running process. Remote Hosts expose status only. Local actions require the owning transport and matching state domain.
  • Add a Cap-style floating guide with a draggable application icon. It stays above other windows and follows System Settings, preferring the space below the settings window. Moving the guide manually stops automatic placement.
  • Coordinate permission restarts with normal quit handling and update installation. The launcher reopens the desktop on exit code 75, preserves the Root, and respects cancellation.
  • Link directly to Files and Folders and Full Disk Access. Rendering the page never probes protected files. Localize the page and its Settings entry across all 12 locales.
  • Preserve the existing macOS staging path, Maka.app, and the release identifier, org.apache.maka.desktop. Development builds have the display name Maka Preview and their own .dev identifier. Signing continues to use the configured identity or the ad-hoc fallback.

Verification

  • Passed cargo fmt --all -- --check, Biome on all changed frontend and packaging sources, and TypeScript checks for the Workbench generated UI, SDK acceptance project and product bundle. Verified generated SDK declarations and locale key parity.
  • Passed all 353 Workbench and packaging Node tests, including the existing development launcher test and release/development bundle signing checks.
  • Passed macOS Workbench, desktop shell, CLI, Computer Use, Host runtime, app client, agent API and updater library/binary tests. Passed all 9 remote Host integration tests, 4 direct-launch tests and 3 Workbench Markdown tests. NSH macOS library tests passed (230 passed, 3 ignored).
  • Native agent tests: 285 of 289 passed across runs. The following four failures also reproduced against the unmodified base commit, 9c051de3bc:
    • compaction_resumes_with_steering_indexed_at_its_original_delivery
    • parallel_tool_results_stay_together_when_a_cell_callback_returns_late
    • code_mode_output_budget_tail_preview_mixed_media_and_in_cell_read
    • replay_and_archive_use_the_captured_history_reader
  • Passed Linux ARM64 cargo check --locked for maka-workbench, maka-desktop-shell, maka-cli, maka-agent-native and maka-computer-use with GTK 4.18.6.
  • A local Windows MSVC cross-check stopped in native dependencies because the macOS toolchain lacked Windows C headers. No live desktop preview was launched during this verification.

@github-actions github-actions Bot added the effort/XXL Over 2500 readable lines label Nov 28, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/XXL Over 2500 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant